/**
 * Created by huiyanshi@uworks.cc on 2016/09/19.
 */
var title = request("title").replace("#");
if(title){
    $("#nav_header").find('[data-nav="' + title + '"]').addClass("current");
}
navMessageClick();

/*** 顶部开启项目按钮*/
function navMessageClick(){
    $("#nav_message").on("click", function () {
        window.location.href = "/message.html";
    });
}

// 移动端导航展开
$('.j-nav-mp-btn').on('click', function() {
    var _this = $(this);
    if(_this.hasClass('clicked')) {
        _this.removeClass('clicked');
        _this.parents('.mod-nav-mp').removeClass('launch');
    }else {
        _this.addClass('clicked');
        _this.parents('.mod-nav-mp').addClass('launch');
    }
});